home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global stormNames, fileNames, bkHilite, fwdHilite, addHilite, editFlag, stormData1, stormPlot1, stormPlot2, currentLocation, nameHilite, nameHilite1, Xscale, Yscale, plotSprite, plotSprite2, hSprite, secondary, nameIndex, HDPath, CDPath
- globalButtonInit(44, 48)
- set editFlag to 0
- set the visible of sprite 40 to 0
- set Xscale to 602.0 / 80.0
- set Yscale to 339.0 / 45.0
- set nameHilite to 11
- set nameHilite1 to 19
- set the visible of sprite nameHilite to 0
- set the visible of sprite nameHilite1 to 0
- set bkHilite to 27
- set the visible of sprite bkHilite to 0
- set fwdHilite to 28
- set the visible of sprite fwdHilite to 0
- set addHilite to 29
- set the visible of sprite addHilite to 0
- set currentLocation to 1
- set plotSprite2 to 16
- set plotSprite to 17
- set hSprite to 18
- puppetSprite(16, 1)
- puppetSprite(17, 1)
- puppetSprite(18, 1)
- set the locH of sprite plotSprite to -2000
- set the locV of sprite plotSprite to -2000
- set the locH of sprite hSprite to -2000
- set the locV of sprite hSprite to -2000
- set the trails of sprite plotSprite to 1
- set the trails of sprite plotSprite2 to 1
- set obj to FileIO(mnew, "read", HDPath & "htracker\DOSnames.txt")
- set fileNames to obj(mReadFile)
- obj(mdispose)
- set obj to FileIO(mnew, "read", HDPath & "htracker\Stmnames.txt")
- set stormNames to obj(mReadFile)
- obj(mdispose)
- set the text of field "storms" to stormNames
- set stormData1 to the short date
- set nameIndex to the number of lines in stormData1
- set stormPlot1 to []
- set stormPlot2 to []
- set secondary to 0
- set the text of field "stormName" to "no storm loaded"
- set the text of field "name" to "no storm loaded"
- set the text of field "name1" to "no secondary storm"
- set the text of field "counter" to "1 of 1 "
- set the text of field "date" to the date
- set the text of field "time" to EMPTY
- set the text of field "lat" to EMPTY
- set the text of field "lon" to EMPTY
- set the text of field "speed" to EMPTY
- set the text of field "direction" to EMPTY
- set the text of field "wind speed" to EMPTY
- set the text of field "pressure" to EMPTY
- set the keyDownScript to "keyScript"
- set the mouseDownScript to "click"
- end
-
- on click
- if the clickOn then
- puppetSound("click1.aif")
- updateStage()
- end if
- end
-
- on stopMovie
- set the keyDownScript to EMPTY
- end
-
- on keyScript
- global editFlag
- if the key = RETURN then
- set the selStart to 0
- set the selEnd to 0
- dontPassEvent()
- else
- set editFlag to 1
- end if
- end
-
- on printScreen
- global CDPath
- if objectp(printer) then
- printer(mdispose)
- else
- openXLib(CDPath & "mainmenu\pmatic.dll")
- end if
- set printer to PrintOMatic(mnew)
- printer(mRegister, "10056779-130")
- printer(mSetLandscapeMode, 1)
- printer(mReset)
- printer(mNewPage)
- printer(mStagePicture, 30, 0, printer(mGetPageWidth), printer(mGetPageHeight))
- printer(mPrint)
- printer(mReset)
- printer(mSetLandscapeMode, 0)
- printer(mdispose)
- closeXLib(CDPath & "mainmenu\pmatic.dll")
- end
-